{extend name="layout/layout" /}

{block name="pagecss"}

{/block}

{block name="content"}
<div class="row js-check-wrap">
    <div class="col-lg-12">
        <div class="portlet light">
            <div class="box-header">
                <div class="row">
                    <div class="col-md-9 col-sm-12">
                        <form id="searchForm" class="form">
                            <div class="row" id="search">
                                <div class="col-md-3">
                                    <input type="text" class="form-control" name="levelName" placeholder="代理级别">
                                </div>
                                <div class="col-md-1">
                                    <button type="button" class="btn btn-success" id="doSearch" title="搜索">
                                        <i class="fa fa-search"></i> 搜索
                                    </button>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="col-md-3 col-sm-12">
                        <div class="pull-right">
                            <a href="{:url('agent/agentpolicy/add')}" class="btn blue btn-circle"><i class="fa fa-plus"></i> 新增代理政策</a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="portlet-body">
                <form class="js-ajax-form" method="post">
                    <div class="">
                        <table id="data-table" class="table table-bordered table-hover dataTable">
                            <thead>
                            <th>代理级别</th>
                            <th>预存金额（万元）</th>
                            <th>进货价</th>
                            <th>创建时间</th>
                            <th>操作</th>
                            </thead>
                        </table>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<input type="hidden" class="datalist_url" value="{:url('agent/agentpolicy/ajaxAgentpolicyList')}">
<input type="hidden" class="edit_url" value="{:url('agent/agentpolicy/edit')}">
<input type="hidden" class="delete_url" value="{:url('agent/agentpolicy/delete')}">
{/block}

{block name="pagescript"}
<script src="__STATIC__/agent/pages/js/agentpolicy.js" type="text/javascript"></script>
{/block}